package com.yanqu.road.entity.enums.washe;

public enum eWasheModeType {

    Guide(-1, "新手引导"),

    NewHandPvp(1, "新手段位对战"),
    Pvp(2, "玩家对战"),
    Practice(3, "练习"),
    FriendPk(4, "好友对战"),
    JinBiaoScoreLow(5, "锦标赛-积分赛对战-初级场"),
    JinBiaoScoreHigh(6, "锦标赛-积分赛对战-高级场"),
    JinBiaoPeak(7, "锦标赛-巅峰赛对战"),
    AreaPk(8, "地区赛"),

    ;

    private int value;
    private String desc;

    eWasheModeType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static eWasheModeType getType(int value) {
        for (eWasheModeType type : eWasheModeType.values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
